


{{include file="public/header" /}}

<!-- right content start  -->
<div class="content-right">
    <div class="content">

        <div class="am-g m-t-15">
            <a href="{{:MyUrl('admin/books/saveinfo')}}" class="am-btn am-btn-secondary am-radius am-btn-xs am-icon-plus"> 新增</a>
        </div>
        <!-- operation end -->

        <!-- list start -->
        <table class="am-table am-table-striped am-table-hover am-text-middle m-t-10 goods-list">
            <thead>
                <tr>
                    <th>编号</th>
                    <th>书单名称</th>
                    <th class="am-hide-sm-only">主题图片</th>
                    
                    <th>是否推荐</th>
                    <th class="am-hide-sm-only">主题描述</th>
                    
                    <th class="am-hide-sm-only">修改时间</th>
                    <th class="am-hide-sm-only">创建时间</th>
                       <th class="am-hide-sm-only">状态</th>
                    <th>书籍</th>
                  
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                {{if !empty($data_list)}}
                {{foreach $data_list as $v}}
                <tr id="data-list-{{$v.id}}"  >
                    <td>{{$v.id}}</td>
                    <td>
                        {{$v.title}} 
                    </td>  
                    <td class="am-hide-sm-only"><img width="100" height="60" src="{{$v.layout}}" /> </td>
                 
                    <td><a href="javascript:;" class="am-icon-btn am-icon-check submit-state {{if $v['is_recommended'] eq 1}}am-success{{else /}}am-default{{/if}}" data-url="{{:MyUrl('admin/books/statusrecommended')}}" data-id="{{$v.id}}" data-state="{{$v['is_recommended']}}" data-is-update-status="0"></a></td>
                    <td class="am-hide-sm-only">{{$v.describe}}</td>
                      <td class="am-hide-sm-only">{{$v.upd_time|date='Y-m-d H:i:s'}}</td>
                    <td class="am-hide-sm-only">{{$v.add_time|date='Y-m-d H:i:s'}}</td>
                    
                    <td><a href="javascript:;" class="am-icon-btn am-icon-check submit-state {{if $v['status'] eq 1}}am-success{{else /}}am-default{{/if}}" data-url="{{:MyUrl('admin/books/statusUpdate')}}" data-id="{{$v.id}}" data-state="{{$v['status']}}" data-is-update-status="0"></a></td>
               
                    
                    <td>    
                        <a href="{{:MyUrl('admin/books/booksGoods', ['id'=>$v['id']])}}">
                            <button class="am-btn am-btn-secondary am-btn-xs am-radius am-icon-edit"> 书籍列表</button>
                        </a>
                    </td>
                 
                    <td class="view-operation">
                        <a href="{{:MyUrl('admin/books/saveinfo', array_merge($params, ['id'=>$v['id']]))}}">
                            <button class="am-btn am-btn-secondary am-btn-xs am-radius am-icon-edit"> 编辑</button>
                        </a>
                        <button class="am-btn am-btn-danger am-btn-xs am-radius am-icon-trash-o submit-delete" data-url="{{:MyUrl('admin/books/delete')}}" data-id="{{$v.id}}"> 删除</button>
                        

                    </td>
                    
                </tr>
                {{/foreach}}
                {{/if}}
            </tbody>
        </table>
        {{if empty($data_list)}}
        <div class="table-no"><i class="am-icon-warning"></i> 没有相关数据</div>
        {{/if}}
        <!-- list end -->

        <!-- page start -->
        {{if !empty($data_list)}}
        {{$page_html|raw}}
        {{/if}}
        <!-- page end -->
    </div>
</div>
<!-- right content end  -->

<!-- footer start -->
{{include file="public/footer" /}}
<!-- footer end -->